Helpful Information
 
 
Category: HTML Programming
Forms (input type="image") with Netscape

Hi there,

I'm new to this forum, so apologises if this question has been asked before.

I have created a form with a send and reset image in place of the standard buttons that appear with the HTML code. The form works fine in IE4, but the images do not work when viewed in Netscape 4.

Here is the code, what am I missing for it to work in Netscape?

<input type="image" name="Submit" src="submit_button.gif" width="80" height="30" value="Submit">

<input type="image2" name="Reset" src="reset_button.gif" width="80" height="30" value="Reset">


If anyone has the answer, please email me, thanks.

Diablo.


[This message has been edited by Diablo (edited 08-24-99).]

HI!

As far as i know there are still some problems using images as form elements(especially the reset button)
So here is what i do in these situations:

<a href="javascript:document.your_form_name.reset();" onMouseOver="window.status='delete Form'; return true;" onMouseOut="window.status=' '; return false;"><img src="your_grafik_here"></a>
<a href="javascript:document.your_form_name.submit();" onMouseOver="window.status='submit Form'; return true;" onMouseOut="window.status=' '; return false;"><img src="your_grafik_here"></a>

This code shuold do what you want.
Place it outside of the form tags.

Greetings
Bjoern

Hi, im new to devshed and creating active server pages.

Bjoern's solution to the crusty old-style 'reset' type using javascript worked,
thanks bjoern for an elegant solution, but i am new to javascript and am a little confused as to why a purple outline surrounds the gif im using for the reset button.
I am asuming this is typical of javascript...someone must have encounted this before or know a solutuion?

http://www.htmlcodetutorial.com/forms/index_famsupp_142.html

<.....border="0"...>

or:

<.....style="border-width:0px;"...>

thanks adios...
i cheched the link and it all worked perfectly...
i might try that boarder code later aswell....

WEE!










privacy (GDPR)